/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.b2b.modules.fm.service.base;

import java.util.List;

import com.b2b.common.utils.CacheUtils;
import com.b2b.modules.fm.assets.FmUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.b2b.common.persistence.Page;
import com.b2b.common.service.CrudService;
import com.b2b.modules.fm.entity.base.FmBrand;
import com.b2b.modules.fm.dao.base.FmBrandDao;

/**
 * 设备品牌信息Service
 * @author soldier lee
 * @version 2016-11-23
 */
@Service
@Transactional(readOnly = true)
public class FmBrandService extends CrudService<FmBrandDao, FmBrand> {

	public FmBrand get(String id) {
		return super.get(id);
	}
	
	public List<FmBrand> findList(FmBrand fmBrand) {
		return super.findList(fmBrand);
	}
	
	public Page<FmBrand> findPage(Page<FmBrand> page, FmBrand fmBrand) {
		return super.findPage(page, fmBrand);
	}
	
	@Transactional(readOnly = false)
	public void save(FmBrand fmBrand) {
		super.save(fmBrand);
		CacheUtils.remove(FmUtils.CACHE_FM_BRAND_LIST);
	}
	
	@Transactional(readOnly = false)
	public void delete(FmBrand fmBrand) {
		super.delete(fmBrand);
		CacheUtils.remove(FmUtils.CACHE_FM_BRAND_LIST);
	}
	
	
	
	
}